﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.db2
{
	// Token: 0x020001D0 RID: 464
	public class TDb2CloseCursorStmt : TCustomDb2Stmt
	{
		// Token: 0x06000F8A RID: 3978 RVA: 0x0030BA61 File Offset: 0x00309C61
		public TDb2CloseCursorStmt(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstdb2closecursorstmt;
		}

		// Token: 0x06000F8B RID: 3979 RVA: 0x0030BA75 File Offset: 0x00309C75
		internal override void buildsql()
		{
		}

		// Token: 0x06000F8C RID: 3980 RVA: 0x0030BA77 File Offset: 0x00309C77
		internal override void clear()
		{
		}

		// Token: 0x06000F8D RID: 3981 RVA: 0x0030BA79 File Offset: 0x00309C79
		internal override string getasprettytext()
		{
			return "";
		}

		// Token: 0x06000F8E RID: 3982 RVA: 0x0030BA80 File Offset: 0x00309C80
		internal override void iterate(TVisitorAbs pvisitor)
		{
		}

		// Token: 0x170002E7 RID: 743
		// (get) Token: 0x06000F8F RID: 3983 RVA: 0x0030BA82 File Offset: 0x00309C82
		// (set) Token: 0x06000F90 RID: 3984 RVA: 0x0030BA8A File Offset: 0x00309C8A
		public virtual TObjectName CursorName
		{
			get
			{
				return this.cursorName;
			}
			set
			{
				this.cursorName = value;
			}
		}

		// Token: 0x06000F91 RID: 3985 RVA: 0x0030BA94 File Offset: 0x00309C94
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TCloseSqlNode tcloseSqlNode = (TCloseSqlNode)this.rootNode;
			this.cursorName = tcloseSqlNode.CursorName;
			return 0;
		}

		// Token: 0x06000F92 RID: 3986 RVA: 0x0030BACC File Offset: 0x00309CCC
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06000F93 RID: 3987 RVA: 0x0030BADC File Offset: 0x00309CDC
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x04001379 RID: 4985
		private TObjectName cursorName;
	}
}
